cmake_minimum_required(VERSION 2.6)

find_package(OpenCL)
find_package(Threads)

include_directories ("${COLONY_SOURCE_DIR}")

set(BRAIN_SRCS builder.cc tree.cc)
add_library(brain ${BRAIN_SRCS})
target_link_libraries(brain OpenCL pthread cppn)

add_executable (brain_test test.cc visualize.cc)
target_link_libraries(brain_test brain cppn evolution OpenCL pthread)
